@extends('layouts.app')
@section('title', '审核信息')

@section('content')
    <div class="conn">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <h3 class="text-center liti">客户申请信息</h3>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="tab">
                        <ul>
                            <li>
                               <p class="text-center">姓名:{{ $info['name'] }}</p>

                            </li>
                            <li>
                                <p class="text-center">身份证:{{ $info['Id_per'] }}</p>

                            </li>
                            <li>
                                <p class="text-center">电话:{{ $info['tel'] }}</p>
                            </li>
                            <li>
                                <p class="text-center">email:{{ $info['email'] }}</p>
                            </li>
                            <li>
                                <p class="text-center">借款金额:{{ $info['money'] }}元</p>
                            </li>
                            <li>
                                <p class="text-center">还款期限:{{ $info['data_type'] }}年</p>
                            </li>
                            <li>
                                <p class="text-center">借款时间:{{ $info['created_at'] }}</p>
                            </li>
                            <li>
                                <p class="text-center">审核状态:{{ $info['status_desc'] }}</p>
                            </li>
                            <li>
                                <p class="text-center">抵押物</p>
                                <div class="tu">
                                    @if($image=json_decode($info['img']))
                                        @foreach($image as $file)
                                            <img src="{{ url($file) }}" width="100" height="100" class="pic">
                                        @endforeach
                                    @else
                                        -
                                    @endif
                                </div>
                            </li>
                            @if (!$info->status)
                                <li class="butpos center-block">
                                    <a href="{{ route('examine.handle', ['pass', $info->id]) }}" class="btn btn-primary">通过</a>
                                    <a href="{{ route('examine.handle', ['deny', $info->id]) }}" class="btn btn-danger">拒绝</a>
                                </li>
                            @endif
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <link rel="stylesheet" type="text/css"  href="{{ asset('css/examine/detail.css') }}"/>
@endsection